package chen.web.util;

import java.util.Date;

public class DateInt {

	public static Date transform(int date){
		return new Date((long)date*1000);
	}
	
	public static int transform(Date date){
		if(date == null) return 0;
		return (int)(date.getTime()/1000);
	}

}
